package com.auto.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

//@Component
public class Person {

	// @Autowired
	BookDao bookDao;

	private String name;

	private int age;

	// @Autowired
	public void setBook(BookDao bookDao2) {
		System.out.println("Person.setBook()");
		System.out.println(bookDao2);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "Person [bookDao=" + bookDao + ", name=" + name + ", age=" + age + "]";
	}

	public Person() {
		super();
	}

}
